<template>
  <div>
    御剑乘风来,除魔天地间!====father
    <Son></Son>
    <button @click="chan">更改</button>
  </div>
</template>
<script>
import Son from "./son.vue";
export default {
  components: {
    Son,
  },
  data() {
    return {};
  },
  created() {
    console.log(this.aa);
  },
  inject: ["aa","fn"],
  provide() {
    return {
        bb:'这里是father',
    }
  },

  created() {},
  computed: {},
  methods: {
    chan() {
        this.fn("nihao");
    }
  },
};
</script>
<style lang='less'  scoped>
</style>
